package com.ruoyi.od.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论审核对象 od_comment
 * 
 * @author 榛子
 * @date 2023-07-30
 */
public class OdComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    @Excel(name = "评论ID")
    private Long id;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 回复目标评ID */
    @Excel(name = "回复目标评ID")
    private Long ReplayToCommentId;

    /** 父评论id */
    @Excel(name = "父评论id")
    private Long rootCommentId;

    /** 发布评论文章ID */
    @Excel(name = "发布评论文章ID")
    private Long articleId;

    /** 评论者 */
    @Excel(name = "评论者")
    private String author;

    /** 发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long commentLikeCount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setReplayToCommentId(Long ReplayToCommentId) 
    {
        this.ReplayToCommentId = ReplayToCommentId;
    }

    public Long getReplayToCommentId() 
    {
        return ReplayToCommentId;
    }
    public void setRootCommentId(Long rootCommentId) 
    {
        this.rootCommentId = rootCommentId;
    }

    public Long getRootCommentId() 
    {
        return rootCommentId;
    }
    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }
    public void setCommentLikeCount(Long commentLikeCount) 
    {
        this.commentLikeCount = commentLikeCount;
    }

    public Long getCommentLikeCount() 
    {
        return commentLikeCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("ReplayToCommentId", getReplayToCommentId())
            .append("rootCommentId", getRootCommentId())
            .append("articleId", getArticleId())
            .append("author", getAuthor())
            .append("created", getCreated())
            .append("commentLikeCount", getCommentLikeCount())
            .toString();
    }
}
